﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class BNPC
    {
        enum BlacksmithType
        {
            修补NPC,
            强化NPC,
            打造NPC
        }
        class BlacksmithNPC : NPC
        {
            private string blacksmithInfo;
            private BlacksmithType type3;

            public BlacksmithNPC() { }

            public BlacksmithNPC(string name, NPCtype npctype, BlacksmithType type3, string blacksmithInfo) : base(name, npctype)
            {
                this.type3 = type3;
                this.blacksmithInfo = blacksmithInfo;
            }

            public override void SayHello()
            {
                Console.WriteLine("如果你对自己的实力有信心，即使随地捡起的树叶也能成为这世上最好的武器");
                Console.WriteLine("我叫：{0}，我是{1}中的{2}，我可以帮你：{3}", base.Name, base.NpcType, this.type3, this.blacksmithInfo);
            }

            public string BlacksmithInfo
            {
                get { return this.blacksmithInfo; }
                set { this.blacksmithInfo = value; }
            }
            public BlacksmithType Type3
            {
                get { return this.type3; }
                set { this.type3 = value; }
            }
        }
    }
}
